﻿﻿<!DOCTYPE html>
<html lang="zh-CN" data-theme="light">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>@ViewData["Title"] - Net8 Identity 认证中心</title>
    <link href="~/lib/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet" />
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
    <link href="~/css/site.css" asp-append-version="true" />
    <link rel="icon" type="image/x-icon" href="~/favicon.ico">
</head>
<body>
    <header>
        <nav class="navbar navbar-expand-lg navbar-modern fixed-top">
            <div class="container">
                <a class="navbar-brand" asp-area="" asp-page="/Index">
                    <i class="bi bi-shield-lock"></i>
                    <span>Net8 Identity</span>
                </a>
                
                <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                    <span class="navbar-toggler-icon"></span>
                </button>
                
                <div class="collapse navbar-collapse" id="navbarNav">
                    <ul class="navbar-nav me-auto">
                        <li class="nav-item">
                            <a class="nav-link @(ViewContext.ActionDescriptor.DisplayName.Contains("Index") ? "active" : "")" 
                               asp-area="" asp-page="/Index">
                                <i class="bi bi-house me-1"></i>首页
                            </a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link @(ViewContext.ActionDescriptor.DisplayName.Contains("Authenticate") ? "active" : "")" 
                               asp-area="" asp-page="/Authenticate">
                                <i class="bi bi-person-lock me-1"></i>登录
                            </a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link @(ViewContext.ActionDescriptor.DisplayName.Contains("Privacy") ? "active" : "")" 
                               asp-area="" asp-page="/Privacy">
                                <i class="bi bi-shield-check me-1"></i>隐私政策
                            </a>
                        </li>
                    </ul>
                    
                    <div class="navbar-nav">
                        <span class="nav-link disabled">
                            <i class="bi bi-person-circle me-1"></i>
                            <span class="fw-medium">认证服务</span>
                        </span>
                    </div>
                </div>
            </div>
        </nav>
    </header>

    <main class="container" style="margin-top: 6rem;">
        <div class="fade-in-up">
            @RenderBody()
        </div>
    </main>

    <footer class="footer-modern">
        <div class="container">
            <div class="row align-items-center">
                <div class="col-md-6">
                    <p class="text-muted mb-0">
                        <i class="bi bi-c-circle me-1"></i>
                        2025 Net8.Identity 认证中心
                    </p>
                </div>
                <div class="col-md-6 text-md-end">
                    <small class="text-muted">
                        <a href="https://documentation.openiddict.com/" target="_blank" class="me-3">
                            <i class="bi bi-book me-1"></i>OpenIddict 文档
                        </a>
                        <a href="https://docs.microsoft.com/aspnet/core" target="_blank">
                            <i class="bi bi-code-square me-1"></i>ASP.NET Core
                        </a>
                    </small>
                </div>
            </div>
        </div>
    </footer>

    <script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
    <script src="~/js/site.js" asp-append-version="true"></script>
    <script>
        // 页面加载动画
        document.addEventListener('DOMContentLoaded', function() {
            // 平滑滚动
            document.querySelectorAll('a[href^="#"]').forEach(anchor => {
                anchor.addEventListener('click', function (e) {
                    e.preventDefault();
                    const target = document.querySelector(this.getAttribute('href'));
                    if (target) {
                        target.scrollIntoView({
                            behavior: 'smooth',
                            block: 'start'
                        });
                    }
                });
            });
        });
    </script>
    @await RenderSectionAsync("Scripts", required: false)
</body>
</html>